using System;
using System.ComponentModel;
using System.Collections.Generic;

using Castle.ActiveRecord;

/// <summary>
/// Business entity class generated from RepositoryPhoneNumber
/// </summary>
/// <remarks>
/// Created by: huanhvhd
/// Created date: [2011-04-23]
/// </remarks>
namespace TVN.ShopMan.ActiveModels
{
	[ActiveRecord("RepositoryPhoneNumber")]
	public partial class RepositoryPhoneNumber : ActiveRecordBase<RepositoryPhoneNumber>
	{
		#region Properties
		
        /// <summary>
        /// All properties
        /// </summary>
		public class Properties
		{
			public const string Id = "Id";
			public const string Repository = "Repository";
			public const string PhoneNumber = "PhoneNumber";
		}

		#endregion

		#region Private fields

		private long _id;
		private Repository _repositoryId;
		private PhoneNumber _phoneNumberId;


		#endregion

		#region Constructors

		public RepositoryPhoneNumber()
		{
		}

		#endregion

		#region Properties

		[PrimaryKey("Id", Access = PropertyAccess.NosetterLowercaseUnderscore)]
		public long Id
		{
			get { return _id; }
		}

		[BelongsTo("RepositoryId", Type = typeof(Repository))]
		public Repository Repository
		{
			get { return _repositoryId; }
			set { _repositoryId = value; }
		}

		[BelongsTo("PhoneNumberId", Type = typeof(PhoneNumber))]
		public PhoneNumber PhoneNumber
		{
			get { return _phoneNumberId; }
			set { _phoneNumberId = value; }
		}

		#endregion

	} }
